package com.atguigu.tingshu.order.client.impl;


import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.model.order.OrderInfo;
import com.atguigu.tingshu.order.client.OrderInfoFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author sun
 */
@Component
@Slf4j
public class OrderInfoDegradeFeignClient implements OrderInfoFeignClient {


    /**
     * 根据订单号查询订单信息
     *
     * @param orderNo 订单号
     * @return 订单信息
     */
    @Override
    public Result<OrderInfo> getOrderInfo(String orderNo) {
        log.error("根据订单号{}查询订单信息，失败",orderNo);
        return null;
    }
}
